package com.ccsoft.gsms.dao;

import com.ccsoft.gsms.model.SysPermission;
import com.ccsoft.gsms.model.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(SysUser record);

    SysUser selectByPrimaryKey(Integer iid);

    List<SysUser> selectAll();

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUserId(@Param("userId") String userId);

    List<SysPermission> selectPermissionsByUserId(@Param("userId") String userId);

}